{if $report->get('show_sequence')}
<div style="text-align: right;">
	<div style="float: right; padding: 2px; border: solid 1px black; font-weight: bold;">Report #{$report_sequence}</div>
	<br style="clear: both";
</div>
{/if}
<table width="100%"  border="0" cellspacing="0" cellpadding="8">
<tr>
	<td>
		<h2 style="float:left">Report: {$report->get_label()}{if $template_name !== "Default Template"} - {$template_name}{/if}</h2>
		{if $PRINT_ACTION || $PDF_ACTION}
			<div style="float:right"><a target='print' href="{$PRINT_ACTION}">Print View</a>
			<a target='print' href="{$PDF_ACTION}">PDF View</a></div>
		{/if}
		<div style='clear: both'></div>
		{if $report->get_description()}
		<p>{$report->get_description()}</p>
		{/if}
	</td>
</tr>
{foreach from=$reports item=report}
<tr><td>
	{if $report.title}<h3>{$report.title|make_label}</h3>{/if}
	{if !$report.flags || !in_array('hideFilter',$report.flags)}
		{$report.filter->render()}
	{/if}
</td></tr>
<tr>
	<td>
		{if $report.flags && in_array('noPager',$report.flags)}
			{$report.grid->setPageSize(false)}
		{/if}
		{$report.grid->render()}
		{if $report.grid->empty}
			<p>Report Section Contains no data.</p>
		{/if}

	</td>
</tr>
{/foreach}

</table>
